package display;
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;


@SuppressWarnings("serial")
/**
 * JFrame container for GUI elements 
 */
public class DisplayEngine extends JFrame {
	JTabbedPane tabbedPane;
	MainGamePanel mainGamePanel;
	JPanel replayPanel;
	
	
	/**
	 * Gets everything going
	 */
	public DisplayEngine(){
		this.setSize(800, 600);
		this.setLayout(new BorderLayout());
		this.setLocation(100, 100);
		setVisible(true);
		initialize();
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		validate();
	}
	
	/**
	 * Initialize all the GUI elements in the Othello game
	 */
	public void initialize(){
		tabbedPane = new JTabbedPane();
		mainGamePanel = MainGamePanel.GetInstance();
		replayPanel = new JPanel();
		
		tabbedPane.addTab("Play", mainGamePanel);
		tabbedPane.addTab("Replays", replayPanel);
		
		this.add(tabbedPane);
	}

}
